.class public Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field private static final o:Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;


# instance fields
.field private a:Lcom/baidu/mobads/utils/m;

.field private b:Lcom/baidu/mobads/utils/s;

.field private c:Lcom/baidu/mobads/interfaces/utils/IBase64;

.field private d:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

.field private e:Lcom/baidu/mobads/interfaces/utils/IXAdViewUtils;

.field private f:Lcom/baidu/mobads/interfaces/utils/IXAdBitmapUtils;

.field private g:Lcom/baidu/mobads/interfaces/utils/IXAdURIUitls;

.field private h:Lcom/baidu/mobads/interfaces/utils/IXAdIOUtils;

.field private i:Lcom/baidu/mobads/utils/r;

.field private j:Lcom/baidu/mobads/interfaces/utils/IXAdActivityUtils;

.field private k:Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;

.field private l:Lcom/baidu/mobads/utils/h;

.field private m:Lcom/baidu/mobads/utils/l;

.field private n:Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;

.field private p:Landroid/content/Context;

.field private q:Lcom/baidu/mobads/interfaces/IXAdContainerFactory;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    invoke-direct {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;-><init>()V

    sput-object v0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->o:Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    return-void
.end method

.method private constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Lcom/baidu/mobads/utils/a;

    invoke-direct {v0}, Lcom/baidu/mobads/utils/a;-><init>()V

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->c:Lcom/baidu/mobads/interfaces/utils/IBase64;

    .line 3
    invoke-static {}, Lcom/baidu/mobads/utils/q;->a()Lcom/baidu/mobads/utils/q;

    move-result-object v0

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->d:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    .line 4
    new-instance v0, Lcom/baidu/mobads/utils/s;

    invoke-direct {v0}, Lcom/baidu/mobads/utils/s;-><init>()V

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->b:Lcom/baidu/mobads/utils/s;

    .line 5
    new-instance v0, Lcom/baidu/mobads/utils/ab;

    invoke-direct {v0}, Lcom/baidu/mobads/utils/ab;-><init>()V

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->e:Lcom/baidu/mobads/interfaces/utils/IXAdViewUtils;

    .line 6
    new-instance v0, Lcom/baidu/mobads/utils/g;

    invoke-direct {v0}, Lcom/baidu/mobads/utils/g;-><init>()V

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->f:Lcom/baidu/mobads/interfaces/utils/IXAdBitmapUtils;

    .line 7
    new-instance v0, Lcom/baidu/mobads/utils/aa;

    invoke-direct {v0}, Lcom/baidu/mobads/utils/aa;-><init>()V

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->g:Lcom/baidu/mobads/interfaces/utils/IXAdURIUitls;

    .line 8
    invoke-static {}, Lcom/baidu/mobads/utils/t;->a()Lcom/baidu/mobads/utils/t;

    move-result-object v0

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->k:Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;

    .line 9
    new-instance v0, Lcom/baidu/mobads/utils/h;

    invoke-direct {v0}, Lcom/baidu/mobads/utils/h;-><init>()V

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->l:Lcom/baidu/mobads/utils/h;

    .line 10
    new-instance v0, Lcom/baidu/mobads/utils/p;

    invoke-direct {v0}, Lcom/baidu/mobads/utils/p;-><init>()V

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->h:Lcom/baidu/mobads/interfaces/utils/IXAdIOUtils;

    .line 11
    new-instance v0, Lcom/baidu/mobads/utils/r;

    invoke-direct {v0}, Lcom/baidu/mobads/utils/r;-><init>()V

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->i:Lcom/baidu/mobads/utils/r;

    .line 12
    new-instance v0, Lcom/baidu/mobads/utils/f;

    invoke-direct {v0}, Lcom/baidu/mobads/utils/f;-><init>()V

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->j:Lcom/baidu/mobads/interfaces/utils/IXAdActivityUtils;

    .line 13
    new-instance v0, Lcom/baidu/mobads/utils/l;

    invoke-direct {v0}, Lcom/baidu/mobads/utils/l;-><init>()V

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->m:Lcom/baidu/mobads/utils/l;

    .line 14
    new-instance v0, Lcom/baidu/mobads/d/b;

    iget-object v1, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->d:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    invoke-direct {v0, v1}, Lcom/baidu/mobads/d/b;-><init>(Lcom/baidu/mobads/interfaces/utils/IXAdLogger;)V

    iput-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->n:Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;

    return-void
.end method

.method public static getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;
    .locals 1

    .line 1
    sget-object v0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->o:Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    return-object v0
.end method


# virtual methods
.method public downloadApp(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V
    .locals 2

    .line 1
    :try_start_0
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getCommonUtils()Lcom/baidu/mobads/utils/h;

    .line 2
    new-instance v0, Lcom/baidu/mobads/command/a/a;

    const/4 v1, 0x0

    invoke-direct {v0, v1, p1, v1}, Lcom/baidu/mobads/command/a/a;-><init>(Lcom/baidu/mobads/interfaces/IXNonLinearAdSlot;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobads/interfaces/IXAdResource;)V

    invoke-virtual {v0}, Lcom/baidu/mobads/command/a/a;->a()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    const-string p1, ""

    .line 3
    invoke-static {p1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :goto_0
    return-void
.end method

.method public downloadAppSilence(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V
    .locals 0

    .line 1
    invoke-virtual {p0, p1}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->downloadApp(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V

    return-void
.end method

.method public getActivityUtils()Lcom/baidu/mobads/interfaces/utils/IXAdActivityUtils;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->j:Lcom/baidu/mobads/interfaces/utils/IXAdActivityUtils;

    return-object v0
.end method

.method public getAdConstants()Lcom/baidu/mobads/utils/l;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->m:Lcom/baidu/mobads/utils/l;

    return-object v0
.end method

.method public getAdContainerFactory()Lcom/baidu/mobads/interfaces/IXAdContainerFactory;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->q:Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

    return-object v0
.end method

.method public getAdCreativeCacheManager()Lcom/baidu/mobads/utils/m;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->a:Lcom/baidu/mobads/utils/m;

    return-object v0
.end method

.method public getAdLogger()Lcom/baidu/mobads/interfaces/utils/IXAdLogger;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->d:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    return-object v0
.end method

.method public getAdResource()Lcom/baidu/mobads/utils/s;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->b:Lcom/baidu/mobads/utils/s;

    return-object v0
.end method

.method public getApplicationContext()Landroid/content/Context;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->p:Landroid/content/Context;

    return-object v0
.end method

.method public getBase64()Lcom/baidu/mobads/interfaces/utils/IBase64;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->c:Lcom/baidu/mobads/interfaces/utils/IBase64;

    return-object v0
.end method

.method public getBitmapUtils()Lcom/baidu/mobads/interfaces/utils/IXAdBitmapUtils;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->f:Lcom/baidu/mobads/interfaces/utils/IXAdBitmapUtils;

    return-object v0
.end method

.method public getCommonUtils()Lcom/baidu/mobads/utils/h;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->l:Lcom/baidu/mobads/utils/h;

    return-object v0
.end method

.method public getDownloaderManager()Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloaderManager;
    .locals 1

    .line 2
    invoke-virtual {p0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/baidu/mobads/openad/b/d;->a(Landroid/content/Context;)Lcom/baidu/mobads/openad/b/d;

    move-result-object v0

    return-object v0
.end method

.method public getDownloaderManager(Landroid/content/Context;)Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloaderManager;
    .locals 0

    .line 1
    invoke-static {p1}, Lcom/baidu/mobads/openad/b/d;->a(Landroid/content/Context;)Lcom/baidu/mobads/openad/b/d;

    move-result-object p1

    return-object p1
.end method

.method public getErrorCode()Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->n:Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;

    return-object v0
.end method

.method public getInstallIntent(Ljava/lang/String;)Landroid/content/Intent;
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getPackageUtils()Lcom/baidu/mobads/utils/r;

    move-result-object v0

    invoke-virtual {p0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1, p1}, Lcom/baidu/mobads/utils/r;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    move-result-object p1

    return-object p1
.end method

.method public getIoUtils()Lcom/baidu/mobads/interfaces/utils/IXAdIOUtils;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->h:Lcom/baidu/mobads/interfaces/utils/IXAdIOUtils;

    return-object v0
.end method

.method public getPackageUtils()Lcom/baidu/mobads/utils/r;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->i:Lcom/baidu/mobads/utils/r;

    return-object v0
.end method

.method public getProxyVer()Ljava/lang/String;
    .locals 1

    const-string v0, "8.8283"

    return-object v0
.end method

.method public getSystemUtils()Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->k:Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;

    return-object v0
.end method

.method public getURIUitls()Lcom/baidu/mobads/interfaces/utils/IXAdURIUitls;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->g:Lcom/baidu/mobads/interfaces/utils/IXAdURIUitls;

    return-object v0
.end method

.method public getViewUtils()Lcom/baidu/mobads/interfaces/utils/IXAdViewUtils;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->e:Lcom/baidu/mobads/interfaces/utils/IXAdViewUtils;

    return-object v0
.end method

.method public initializeAdContainerFactory(Lcom/baidu/mobads/interfaces/IXAdContainerFactory;)V
    .locals 0

    if-nez p1, :cond_0

    .line 1
    iput-object p1, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->q:Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

    :cond_0
    return-void
.end method

.method public initializeApplicationContext(Landroid/content/Context;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->p:Landroid/content/Context;

    if-nez v0, :cond_0

    .line 2
    iput-object p1, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->p:Landroid/content/Context;

    .line 3
    :cond_0
    new-instance p1, Lcom/baidu/mobads/utils/m;

    iget-object v0, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->p:Landroid/content/Context;

    invoke-direct {p1, v0}, Lcom/baidu/mobads/utils/m;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->a:Lcom/baidu/mobads/utils/m;

    return-void
.end method

.method public makeRequest(Ljava/lang/String;)V
    .locals 2

    .line 1
    new-instance v0, Lcom/baidu/mobads/openad/d/b;

    const-string v1, ""

    invoke-direct {v0, p1, v1}, Lcom/baidu/mobads/openad/d/b;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, 0x1

    .line 2
    iput p1, v0, Lcom/baidu/mobads/openad/d/b;->e:I

    .line 3
    new-instance p1, Lcom/baidu/mobads/openad/d/a;

    invoke-direct {p1}, Lcom/baidu/mobads/openad/d/a;-><init>()V

    .line 4
    invoke-virtual {p1, v0}, Lcom/baidu/mobads/openad/d/a;->a(Lcom/baidu/mobads/openad/d/b;)V

    return-void
.end method

.method public sendLog(Ljava/lang/String;Ljava/util/HashMap;)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 1
    invoke-static {}, Lcom/baidu/mobads/b/a;->a()Lcom/baidu/mobads/b/a;

    move-result-object v0

    invoke-virtual {p0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const/4 v3, 0x0

    const/4 v4, 0x0

    move-object v2, p1

    move-object v5, p2

    invoke-virtual/range {v0 .. v5}, Lcom/baidu/mobads/b/a;->a(Landroid/content/Context;Ljava/lang/String;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobads/interfaces/IXAdProdInfo;Ljava/util/HashMap;)V

    return-void
.end method

.method public setMobileConfirmed(Ljava/lang/String;)V
    .locals 1

    .line 1
    invoke-static {p1}, Lcom/baidu/mobads/openad/b/b;->a(Ljava/lang/String;)Lcom/baidu/mobads/openad/b/b;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 2
    invoke-virtual {p1}, Lcom/baidu/mobads/openad/b/b;->a()Lcom/baidu/mobads/command/a;

    move-result-object p1

    if-eqz p1, :cond_0

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p1, Lcom/baidu/mobads/command/a;->s:Z

    :cond_0
    return-void
.end method
